import Layout from '@/page/layout/'

export default [
  {
    path: '/login',
    name: "登录",
    component: () => import("@/page/login/index.vue"),
  },
  {
    path: '/login1',
    name: "登录",
    component: () => import("@/page/login1/index.vue"),
  },
  {
    path: '/cabin',
    name: "船舱监控",
    component: Layout,
    redirect: "/cabin/map",
    children: [
      {
        path: 'navigation',
        name: "导航",
        component: () => import("@/views/cabin/navigation/index.vue"),
      },
      {
        path: "deviceDetail",
        name: "设备详情",
        component: () => import("@/views/cabin/deviceDetail/index.vue"),
      },
      {
        path: "recurrent",
        name: "24小时复现",
        component: () => import("@/views/cabin/recurrent/index.vue"),
      },
      {
        path: "CCTV",
        name: "CCTV",
        component: () => import("@/views/cabin/CCTV/index.vue"),
      },
      {
        path: 'map',
        name: "海图监控",
        component: () => import("@/views/map/index.vue"),
      },
      {
        path: 'energy',
        name: "能效管理",
        component: () => import("@/views/cabin/energy/index.vue"),
      },
      {
        path: 'alarm',
        name: "报警列表",
        component: () => import("@/views/alarm/list/index.vue"),
      },
      {
        path: 'performance',
        name: "能效",
        component: () => import("@/views/cabin/performance/index.vue"),
      }
    ]
  },
  {
    path: '/screen',
    component: () => import("@/views/screens/index.vue"),
    hidden: true
  },
  {
    path: '/screens',
    component: () => import("@/views/screen/index.vue"),
    hidden: true
  },
  {
    path: "/gauge",
    component: () => import("@/page/gauge/index.vue"),
    hidden: true
  }
]